home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re creating new windows.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: creating new windows
  2. Sent:        3/19/96 9:02 AM
  3. Received:    3/19/96 9:21 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Now I found that if I pass an ODFrame as the parent frame,
  9. >when I close the parent frame's window, both windows are closed and OpenDoc
  10. >quits. 
  11.  
  12.  
  13. I think this is the right behavior you want. But, to go around the assert 
  14. problem you could still pass NULL for the parent frame and keep track of 
  15. the newly created frame in the source frame. When the source frame goes 
  16. away (in FW_CFrame::FrameRemoved) you could call 
  17. FW_CWindow::CloseAndRemove on the window of the secondary frame. Instead 
  18. of having ODF keeping track of the link it should be easy to do it 
  19. yourself. Look into the FW_CPresentation how view in Window is done. I 
  20. will anyway look into the assert problem.
  21.  
  22. .......................................................................
  23.  Henri Lamiraux                                      lamiraux@apple.com
  24.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  25. .......................................................................
  26.  
  27.  
  28.